package com.education.service;

import com.education.common.JsonData;
import com.education.pojo.Admin;
import com.education.pojo.Function;
import com.education.pojo.Role;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * @author 林心晨
 * @Title:
 * @Package
 * @Description:
 * @date create in 4.28  15:53
 */
public interface IDbaService {

    PageInfo meteAdminList(int pageNum, int pageSize);

    PageInfo conditionQuery(int pageNum, int pageSize, String dateMin, String dateMax, String adminName);

    Map<String,Object> deleteAdminOne(String id);

    Map<String,Object> adminAdd(Admin admin);

    Map<String,Object> delete(String[] id);

    Map<String,Object> adminState(String id, String adminState);

    Admin getAdminInfo(String id);

    List<Role> getRole();

    Map<String,Object> update(String aName, String aUsername, String roleId);

    PageInfo getRoleAdmin(int pageNum, int pageSize, Integer roleId);

    List<Function> functionList(Integer roleId);

    boolean isSuperRole(Integer adminId);

    PageInfo deletedList(int pageNum, int pageSize);

    JsonData deletedChange(Integer id, Integer deleted);

    JsonData del(Integer id);
    JsonData roleDelete(Integer id);
}
